﻿<!--#include file="conn.asp"-->
<!--#include file="inc/CHAR.INC"-->
<%if request("act")="del" then
conn.execute("delete from cjxm where id in("&request("id")&")")
conn.close
set conn=nothing
response.redirect Request.ServerVariables("HTTP_REFERER")
response.end
end if%><%if request("act")="edit" then
ninfo="修改" 
else
ninfo="添加" 
end if
%>
<%set rs=server.createobject("adodb.recordset")
%>
<%if request("act")="save" then
id=request.form("id")
xmmc=request.form("xmmc")
xmsx=request.form("xmsx")
xmfd=request.form("xmfd")
picxz=request.form("picxz")
cjurl=request.form("cjurl")
fnbody=request.form("fnbody")
fnfg=request.form("fnfg")
fnmc=request.form("fnmc")
fnid=request.form("fnid")
mhurl=request.form("mhurl")
mhbody=request.form("mhbody")
mhmc=request.form("mhmc")
mhtp=request.form("mhtp")
mhtpurl=request.form("mhtpurl")
mhzz=request.form("mhzz")
mhjs=request.form("mhjs")
mhzt=request.form("mhzt")
mhfg=request.form("mhfg")
mhzj=request.form("mhzj")
wj=request.form("wj")
lz=request.form("lz")
mhzjid=request.form("mhzjid")
zjurl=request.form("zjurl")
zjbody=request.form("zjbody")
zjsx=request.form("zjsx")
zjfy=request.form("zjfy")
zjtpurlsx=request.form("zjtpurlsx")
zjtpsl=request.form("zjtpsl")
zjtpsurl=request.form("zjtpsurl")
zjtpurl=request.form("zjtpurl")
gxurl=request.form("gxurl")
gxbody=request.form("gxbody")
gxfg=request.form("gxfg")
gxmc=request.form("gxmc")
gxid=request.form("gxid")

if id="" then
sql="select * from cjxm"
rs.open sql,conn,1,3
rs.addnew
else
sql="select * from cjxm where id="&id
rs.open sql,conn,1,3
end if
rs("xmmc")=xmmc
rs("xmsx")=xmsx
rs("xmfd")=xmfd
rs("cjurl")=cjurl
rs("fnbody")=bqtf(fnbody)
rs("fnfg")=bqtf1(fnfg)
rs("picxz")=bqtf1(picxz)
rs("fnid")=bqtf1(fnid)
rs("fnmc")=bqtf1(fnmc)
rs("mhurl")=bqtf1(mhurl)
rs("mhbody")=bqtf1(mhbody)
rs("mhmc")=bqtf1(mhmc)
rs("mhtp")=bqtf1(mhtp)
rs("mhtpurl")=bqtf1(mhtpurl)
rs("mhzz")=bqtf1(mhzz)
rs("mhjs")=bqtf1(mhjs)
rs("mhzt")=bqtf1(mhzt)
rs("mhfg")=bqtf1(mhfg)
rs("mhzj")=bqtf1(mhzj)
rs("wj")=bqtf1(wj)
rs("lz")=bqtf1(lz)
rs("mhzjid")=bqtf1(mhzjid)
rs("zjurl")=bqtf1(zjurl)
rs("zjbody")=bqtf1(zjbody)
rs("zjsx")=bqtf1(zjsx)
rs("zjfy")=bqtf1(zjfy)
rs("zjtpurlsx")=bqtf1(zjtpurlsx)
rs("zjtpsl")=bqtf1(zjtpsl)
rs("zjtpsurl")=bqtf1(zjtpsurl)
rs("zjtpurl")=bqtf1(zjtpurl)
rs("gxurl")=bqtf1(gxurl)
rs("gxbody")=bqtf1(gxbody)
rs("gxfg")=bqtf1(gxfg)
rs("gxmc")=bqtf1(gxmc)
rs("gxid")=bqtf1(gxid)
rs.update
rs.close
set rs=nothing 
response.write("<script>alert('成功："&ninfo&"采集项目成功!现在返回管理');location='cjitem_manage.asp'</script>")
response.end
end if%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="images/style.css" type="text/css" rel="stylesheet">
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body>
    <%
if request("act")="edit" then
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from cjxm where id="&id
rs.open sql,conn,1,1
xmmc=rs("xmmc")
xmsx=rs("xmsx")
xmfd=rs("xmfd")
picxz=rs("picxz")
cjurl=rs("cjurl")
fnbody=rs("fnbody")
fnfg=rs("fnfg")
fnid=rs("fnid")
fnmc=rs("fnmc")
mhurl=rs("mhurl")
mhbody=rs("mhbody")
mhmc=rs("mhmc")
mhtp=rs("mhtp")
mhtpurl=rs("mhtpurl")
mhzz=rs("mhzz")
mhjs=rs("mhjs")
mhzt=rs("mhzt")
mhfg=rs("mhfg")
mhzj=rs("mhzj")
wj=rs("wj")
lz=rs("lz")
mhzjid=rs("mhzjid")
zjurl=rs("zjurl")
zjbody=rs("zjbody")
zjsx=rs("zjsx")
zjfy=rs("zjfy")
zjtpurlsx=rs("zjtpurlsx")
zjtpsl=rs("zjtpsl")
zjtpsurl=rs("zjtpsurl")
zjtpurl=rs("zjtpurl")
gxurl=rs("gxurl")
gxbody=rs("gxbody")
gxfg=rs("gxfg")
gxmc=rs("gxmc")
gxid=rs("gxid")
fnbody=bqtf1(fnbody)
fnfg=bqtf1(fnfg)
fnid=bqtf1(fnid)
mhurl=bqtf1(mhurl)
mhbody=bqtf1(mhbody)
mhmc=bqtf1(mhmc)
fnmc=bqtf1(fnmc)
mhtp=bqtf1(mhtp)
mhtpurl=bqtf1(mhtpurl)
mhzz=bqtf1(mhzz)
mhjs=bqtf1(mhjs)
mhzt=bqtf1(mhzt)
mhfg=bqtf1(mhfg)
wj=bqtf1(wj)
lz=bqtf1(lz)
mhzj=bqtf1(mhzj)
mhzjid=bqtf1(mhzjid)
zjurl=bqtf1(zjurl)
zjbody=bqtf1(zjbody)
zjsx=bqtf1(zjsx)
zjfy=bqtf1(zjfy)
zjtpurlsx=bqtf1(zjtpurlsx)
zjtpsl=bqtf1(zjtpsl)
zjtpsurl=bqtf1(zjtpsurl)
zjtpurl=bqtf1(zjtpurl)
gxurl=bqtf1(gxurl)
gxbody=bqtf1(gxbody)
gxfg=bqtf1(gxfg)
gxmc=bqtf1(gxmc)
gxid=bqtf1(gxid)
end if
    %>
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
        <form name="form1" method="post" action="?act=save">
        <tr bgcolor="3972B4">
            <td colspan="3" bgcolor="e7e7e7">
                <div align="center">
                    <strong><font color="#000000">
                        <%=ninfo%>采集项目</font></strong></div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    采集项目名称</div>
            </td>
            <td width="83%">
                <input name="xmmc" type="text" id="xmmc" value="<%=xmmc%>" size="40"><input name="id"
                    type="hidden" id="id" value="<%=id%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    采集项目属性</div>
            </td>
            <td width="83%">
                <label>
                    <select name="xmsx">
                        <option value="1" <%if xmsx="1" then%>selected<%end if%>>列表页采集</option>
                        <option value="2" <%if xmsx="2" then%>selected<%end if%>>漫画页采集</option>
                        <option value="3" <%if xmsx="3" then%>selected<%end if%>>章节页采集</option>
                    </select>
                    是否开启防盗连接破解
                    <select name="xmfd">
                        <option value="1" <%if xmfd=true then%>selected<%end if%>>是</option>
                        <option value="0" <%if xmfd=false then%>selected<%end if%>>否</option>
                    </select>
                    是否图片本地化
                    <select name="picxz">
                        <option value="1" <%if picxz=true then%>selected<%end if%>>是</option>
                        <option value="0" <%if picxz=false then%>selected<%end if%>>否</option>
                    </select>
                </label>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    采集目标网址</div>
            </td>
            <td width="83%">
                <input name="cjurl" type="text" id="cjurl" value="<%=cjurl%>" size="80">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td colspan="2" bgcolor="e7e7e7">
                <div align="center">
                    <strong>列表页采集属性</strong></div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    采集目标内容</div>
            </td>
            <td width="83%">
                <textarea name="fnbody" cols="80" id="fnbody"><%=fnbody%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画分割</div>
            </td>
            <td width="83%">
                <textarea name="fnfg" cols="80" id="fnfg"><%=fnfg%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画名称
                </div>
            </td>
            <td width="83%">
                <textarea name="fnmc" cols="80" id="fnmc"><%=fnmc%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画ID
                </div>
            </td>
            <td width="83%">
                <textarea name="fnid" cols="80" id="fnid"><%=fnid%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td colspan="2" bgcolor="e7e7e7">
                <div align="center">
                    <strong>漫画页采集属性</strong></div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画页地址定义
                </div>
            </td>
            <td width="83%">
                <input name="mhurl" type="text" id="mhurl" value="<%=mhurl%>" size="80">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    采集目标内容</div>
            </td>
            <td width="83%">
                <textarea name="mhbody" cols="80" id="mhbody"><%=mhbody%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画名称</div>
            </td>
            <td width="83%">
                <textarea name="mhmc" cols="80" id="mhmc"><%=mhmc%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画封面图片
                </div>
            </td>
            <td width="83%">
                <textarea name="mhtp" cols="80" id="mhtp"><%=mhtp%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画封面地址
                </div>
            </td>
            <td width="83%">
                <textarea name="mhtpurl" cols="80" id="mhtpurl"><%=mhtpurl%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画作者
                </div>
            </td>
            <td width="83%">
                <textarea name="mhzz" cols="80" id="mhzz"><%=mhzz%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画介绍</div>
            </td>
            <td width="83%">
                <textarea name="mhjs" cols="80" id="mhjs"><%=mhjs%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    完结状态</div>
            </td>
            <td width="83%">
                <textarea name="mhzt" cols="80" id="mhzt"><%=mhzt%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    连载
                </div>
            </td>
            <td width="83%">
                <textarea name="lz" cols="80" id="lz"><%=lz%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    完结
                </div>
            </td>
            <td width="83%">
                <textarea name="wj" cols="80" id="wj"><%=wj%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    章节分割</div>
            </td>
            <td width="83%">
                <textarea name="mhfg" cols="80" id="mhfg"><%=mhfg%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    章节名称</div>
            </td>
            <td width="83%">
                <textarea name="mhzj" cols="80" id="mhzj"><%=mhzj%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    章节ID</div>
            </td>
            <td width="83%">
                <textarea name="mhzjid" cols="80" id="mhzjid"><%=mhzjid%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td colspan="2" bgcolor="E7E7E7">
                <div align="center">
                    <strong>章节页采集属性</strong></div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    章节页地址定义</div>
            </td>
            <td width="83%">
                <input name="zjurl" type="text" id="zjurl" value="<%=zjurl%>" size="80">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    采集目标内容</div>
            </td>
            <td width="83%">
                <textarea name="zjbody" cols="80" id="zjbody"><%=zjbody%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    图片数量
                </div>
            </td>
            <td width="83%">
                <textarea name="zjtpsl" cols="80" id="zjtpsl"><%=zjtpsl%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    图片服务器地址
                </div>
            </td>
            <td width="83%">
                <textarea name="zjtpsurl" cols="80" id="zjtpsurl"><%=zjtpsurl%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    图片地址
                </div>
            </td>
            <td width="83%">
                <textarea name="zjtpurl" cols="80" id="zjtpurl"><%=zjtpurl%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td colspan="2" bgcolor="E7E7E7">
                <div align="center">
                    <strong>最新更新页采集属性</strong></div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    最新更新地址定义</div>
            </td>
            <td width="83%">
                <input name="gxurl" type="text" id="gxurl" value="<%=gxurl%>" size="80">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    采集目标内容</div>
            </td>
            <td width="83%">
                <textarea name="gxbody" cols="80" id="gxbody"><%=gxbody%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画分隔符</div>
            </td>
            <td width="83%">
                <textarea name="gxfg" cols="80" id="gxfg"><%=gxfg%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画名称
                </div>
            </td>
            <td width="83%">
                <textarea name="gxmc" cols="80" id="gxmc"><%=gxmc%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画ID号
                </div>
            </td>
            <td width="83%">
                <textarea name="gxid" cols="80" id="gxid"><%=gxid%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td colspan="3">
                <div align="center">
                    <input type="submit" name="Submit" class="Submit" value="确认<%=ninfo%>">
                </div>
            </td>
        </tr>
        </form>
    </table>
</body>
</html>
<script language="JavaScript" type="text/JavaScript">
    function SwitchNewsType(NewsType) {
        switch (NewsType) {
            case "PicNews":
                document.getElementById('PicNews').style.display = '';
                break;

        }
    }

</script>
